import api from '.';
import { querySurvivalParams } from 'src/interface/querySurvivalParams'

// const querySurvival = (params: querySurvivalParams) => api.get(
//     '/data/dataStat.json',
//     {
//         params: params,
//     }
// )

const querySurvival = (params: querySurvivalParams) => api.get(
    'api/survival',
    {
        params: params,
    }
)

export { querySurvival }
